#!/bin/bash
set -e

./a db.dat c 
./a db.dat s 1 zed zed@zedshaw.com
./a db.dat s 2 frank frank@zedshaw.com
./a db.dat s 3 joe joe@zedshaw.com
./a db.dat l

./a db.dat d 3
./a db.dat l

 ./a db.dat g 2
./a db.dat f zed